package com.kool.user.dao;

import com.kool.leitu.bean.MenuBean;
import com.kool.leitu.bean.ReqBean;
import com.kool.user.bean.UserAppInfoBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description:
 * @author: tianhe
 * @create: 2019/02/02 15:53
 */
@Mapper
@Repository
public interface UserAppInfoDao {
    void insert(UserAppInfoBean userAppInfoBean);

    void batchInsert(@Param("list") List<UserAppInfoBean> list);

    UserAppInfoBean selectByLoginName(@Param("loginName") String loginName);

    void addErrorTimes(@Param("loginName") String loginName);

    void updateLogin(UserAppInfoBean userAppInfoBean);

    UserAppInfoBean selectById(@Param("userId") Long userId);

    List<MenuBean> selectMenusOfUser(Long userId);

    List<ReqBean> selectReqsOfUser(Long userId);
}
